<?php

namespace Jhub1_Common\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationRegistry;

/**
 * @ORM\Entity
 * @ORM\Table(name="ofVersion")
 */
class OfVersion
{
    /**
     * @ORM\Id
     * @ORM\Column(type="string", name="name", length=50, unique=true, nullable=false);
     * @var string
     */
    private $name;

    /**
     * @ORM\Column(type="integer", name="version", nullable=false)
     * @var string
     */
    private $version;

    public function getGroupName()
    {
        return $this->name;
    }

    public function setGroupName($val)
    {
        $this->name = $val;
    }

    public function getVersion()
    {
        return $this->version;
    }

    public function setVersion($val)
    {
        $this->version = $val;
    }

}

/*CREATE TABLE ofVersion
(
    name VARCHAR(50) PRIMARY KEY NOT NULL,
    version INT NOT NULL
);*/